package com.ndp.fb.creative.fetchdata.dao.mysql.impl.mapper;

import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Component;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * Created by evan.wan on 2015/6/17.
 */
@Component
public class StringListRowMapper implements RowMapper<String> {
    @Override
    public String mapRow(ResultSet rs, int rowNum) throws SQLException {
        return new String(rs.getString("name"));
    }
}
